<!DOCTYPE HTML>
<html>
<head>
    <title>接口对接日志查看页面</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <script src="/webjars/miniui/boot.js" type="text/javascript"></script>
    <link href="/static/css/resource.css" rel="stylesheet" type="text/css"/>
    <link href="/static/css/default.css" rel="stylesheet" type="text/css"/>
    <script src="/static/js/common/common.js" type="text/javascript"></script>
    <style>
        .discell{
            text-align: left;
            width: 120px;
            font-weight: bold;
        }
    </style>
</head>
<body>
<form id="form1">
    <div style="margin:33px;">
        <table>
            <tr>
                <td class="discell">省份：</td>
                <td>
                    <input style="width: 200px" class="mini-textbox" id="province" name="province" />
                </td>
            </tr>
            <tr>
                <td class="discell">用户账号：</td>
                <td>
                    <input style="width: 200px" class="mini-textbox" id="account" name="account"/>
                </td>
            </tr>
            <tr>
                <td class="discell" >时间：</td>
                <td>
                    <input style="width: 200px" class="mini-textbox" id="date" name="date">
                </td>
            </tr>
            <tr>
                <td class="discell" >是否成功：</td>
                <td>
                    <input style="width: 200px" class="mini-radiobuttonlist" id="flag" name="flag" valueField="id" textField="text" >
                </td>
            </tr>
            <tr>
                <td class="discell">人员来源：</td>
                <td>
                    <input class="mini-radiobuttonlist" id="origin" name="origin" valueField="id" textField="text" >
                </td>
            </tr>
            <tr>
                <td class="discell" >接口对接参照码：</span></td>
                <td>
                    <input style="width: 200px;height: 60px" class="mini-textarea" id="code" name="code" >
                </td>
            </tr>
            <tr>
                <td class="discell">录入的数据：<span style="font-size: 10px">(ctrl+A全选)</td>
                <td>
                    <input style="width: 200px;height: 80px" class="mini-textarea" id="data1" name="data1">
                </td>
            </tr>
        </table>
    </div>

</form>


<script type="text/javascript">
    mini.parse();
    var id = ${id};
    var form = new mini.Form("#form1");
    var province = mini.get("province");
    var account = mini.get("account");
    var date = mini.get("date");
    var flag = mini.get("flag");
    var code = mini.get("code");
    var origin = mini.get("origin");
    var data1 = mini.get("data1");

    $(function () {
        //设置查看页面表单为灰色不可编辑
        form.setEnabled(false);
         $.ajax({
             url: '/azbj/seelog/getCodeById?id=' +id,
             type: 'get',
             success(response) {
                 province.setValue(response.scodeId);
                 account.setValue(response.account);
                 date.setValue(response.time);
                 flag.setValue(response.flag);
                 code.setValue(response.code);
                 origin.setValue(response.origin);
                 data1.setValue(response.data);
            }
         });
         //给是否成功渲染
        flag.setData([{ id: 0, text: '失败'},{ id: 1, text: '成功'}]);
        origin.setData([{id: 6, text:'监狱接口对接'},{id: 8,text: '社矫接口对接'},{id: 4,text:'看守所接口对接'},{id: 0,text: '无'}])
    })

    function SetData(data) {

    }

</script>
</body>
</html>